package com.example.miniioc.config;

import com.example.miniioc.annotations.Bean;
import com.example.miniioc.annotations.Configuration;
import com.example.miniioc.service.Product;
import com.example.miniioc.service.Student;

@Configuration
public class AppConfig {
    @Bean
    public Product product() {
        return new Product("Laptop", 5999.99);
    }

    @Bean
    public Student student() {
        return new Student("Tom", 20);
    }
}

